<table>
    <tr>
        <td><a href="/admin/aclresource/create/"><?php echo _mytranslator('Create Resource');?></a></td>
    </tr>
</table>
<table width="100%" border="0" class="userlist noramaltable">
<thead>    
  <tr>
      <td width="31"><?php echo _mytranslator('S no');?></td>
    <td width="73"><?php echo _mytranslator('Resource');?></td>
    <td width="60"><?php echo _mytranslator('Module');?></td>
    <td width="163"><?php echo _mytranslator('Actions');?></td>
  </tr>
</thead> 

  <?php foreach($this->resources as $key=>$resource):?>
<tbody>
  <tr>
    <td><?php echo $key+1;?></td>
    <td><?php echo $resource['resource'];?></td>
    <td><?php echo $resource['resource_module'];?></td>
    <td><a href="<?php echo $this->baseUrl('/admin/aclresource/edit/id/'.$resource['id']);?><?php echo ($this->page)?"/page/".$this->page:''; ?>">Edit</a>
        <a href="<?php echo $this->baseUrl('/admin/aclresource/delete/id/'.$resource['id']);?><?php echo ($this->page)?"/page/".$this->page:''; ?>" class="delete">Delete</a></td>
  </tr>
   </tbody>
  <?php endforeach;?>
 
   <tr>
    <td colspan="4">  <?php echo $this->pagination();?></td>
  </tr>
</table>

<script>
  $(document).ready(function() {
     
         $(".delete").click(function(e){
             e.preventDefault();
             var url = $(this).attr("href");
            setDeleteDialog(url,'<?php echo _mytranslator('Are you sure you want to delete this record')?>');
         
     })
   
  });    
 </script>